var config = require('../config');
// var deleteDir = require("./deleteDir")
const fs = require("fs")
function mkdirByPath() {
    const FilePath = config.filePath == "" ? "./model" : config.filePath + "/model"
    // 新建的类的长度大于1，需要新建model文件夹
    if (!fs.existsSync(FilePath)) {
        // console.log(fs.existsSync(FilePath))
        fs.mkdirSync(FilePath)
        return FilePath;
    } else {
        // deleteDir(FilePath)
        // fs.mkdirSync(FilePath)
        return FilePath;
    }
}

module.exports = mkdirByPath;